package cn.iot.controller.sys;

import cn.iot.common.dto.ResultMsg;
import cn.iot.sys.service.SysGradeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/grade")
public class SysGradeController {
    @Autowired
    private SysGradeService sysGradeService;
    private Logger logger = LoggerFactory.getLogger(getClass());
    @PostMapping("/getSysGradeList")
    public ResultMsg getSysGradeList(){
        logger.info("SysGradeController getSysGradeList start ...");
        ResultMsg msg = sysGradeService.getSysGrade();
        logger.debug("SysGradeController getSysGradeList msg{}",msg);
        return msg;
    }
}
